<%-- 
    Document   : index
    Created on : Apr 26, 2013, 2:26:11 PM
    Author     : Jung Jin Hyuk
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link rel="shortcut icon" href="resources/images/icon-viec-lam.ico" />	
        <link type="text/css" rel="stylesheet" href="resources/style/style.css">
        <title>Recruitment Process System</title>
    </head>
    <body>

        <!-- begin header-->
        <div id="header">
            <!-- begin top header-->
            <div id="line_top">
                <div class="container">
                    <p class="sovl">The number of jobs:<strong>7299</strong></p>
                    <c:set value="${username}" var="userName"></c:set>
                    <c:if test="${empty userName}">
                        <p class="submenu"><a href="#">Contact</a> | <a href="loginServlets">Sign in</a> | <a href="account">Sign up</a></p>
                    </c:if>    
                        <c:if test="${not empty userName}">
                        <p class="submenu">Welcome ${userName} | <a href="LogoutServlet">Log Out</a> | <a href="#">Contact</a>  </p>
                    </c:if>  
                </div>
            </div>
            <div id="top_header">
                <div class="container">
                    <img class="logo" src="resources/images/logo.jpg" />
                    <img class="adv" src="resources/images/banner1.jpg" />
                </div>
            </div>
            <!-- begin menu top-->
            <div id="nav">
                <div class="container">
                    <img class="home" src="resources/images/home.jpg" />
                    <ul>
                        <li ><a href="index.jsp">Home page</a></li>
                        <li><a href="#">Candidates</a></li> <!--Người tìm việc--->
                        <li><a href="#">Recruiters</a></li><!--Nhà tuyển dụng--->
                        <li><a href="#">Personnel supply</a></li><!--Cung ứng nhân sự--->
                    </ul>

                </div>
            </div>
        </div>
        <div class="clear"></div>

        <!-- begin content page-->
        <div id="content">
            <div class="container">
                 <hr style="width: 1200px"/>
                <!-- begin slide news-->
                <div id="slide_news">
                    <div class="sn_col">
                        <h2>Category</h2>
                        <div class="col_content">
                            <a href="#"><img src="resources/images/tailieu.jpg" /></a>
                            <p>For many young people, the biggest challenge facing the job interview ...</p>
                        </div>
                    </div>
                    <div class="sn_col">
                        <h2>Create Profile</h2>
                        <div class="col_content">
                            <a href="#"><img src="resources/images/hoso.jpg" /></a>
                            <p>For many young people, the biggest challenge facing the job interview ...</p>
                        </div>
                    </div>
                    <div class="sn_col">
                        <h2>Work Informations</h2>
                        <div class="col_content">
                            <a href="#"><img src="resources/images/thongtin.jpg" /></a>
                            <p>For many young people, the biggest challenge facing the job interview ...</p>
                        </div>
                    </div>
                    <div class="sn_col">
                        <h2>Job Search Diary</h2>
                        <div class="col_content">
                            <a href="#"><img src="resources/images/nhatky.jpg" /></a>
                            <p>For many young people, the biggest challenge facing the job interview ...</p>
                        </div>
                    </div>
                </div>
                <hr style="width: 1200px"/>
                <!-- begin viec lam-->
                <div id="work">
                    <div CLASS="work1_top">
                        <h3> Search a job</h3>
                        <form action="SearchWork" method="POST">
                            <div class="search">
                                <select name="sCity" class="selectSearch">
                                    <option value="none">Choose Province/City</option><!-- Chọn Tỉnh Thành Phố-->
                                    <c:forEach items="${listWP}" var="wp">
                                        <option value="${wp.workplaceId}">${wp.workplaceName}</option>
                                    </c:forEach>                           
                                </select>
                                <select name="sCategory" class="selectSearch">
                                    <option value="none">Choose a Industry</option>
                                    <c:forEach items="${listC}" var="c">
                                        <option value="${c.categoryId}">${c.categoryName}</option>
                                    </c:forEach>                                                                             
                                </select>
                                <select name="sSalary" class="selectSearch">
                                    <option value="none">Choose Salary Grade</option>
                                    <option value="d1tr">Below 1000.000 vnd</option>
                                    <option value="1d5tr">1000.000->5000.000 vnd</option>
                                    <option value="5d8tr">5000.000->8000.000 vnd</option>
                                    <option value="8d10tr">8000.000->10.000.000 vnd</option>
                                    <option value="10d15tr">10.000.000->15.000.000 vnd</option>
                                    <option value="t15tr">Above 15.000.000 vnd</option>

                                </select>
                                <select name="sExp" class="selectSearch">
                                    <option value="none">Choose Year of Experience</option>
                                    <option value="0">None</option>
                                    <option value="1">1 year</option>
                                    <option value="2">2 years</option>
                                    <option value="3">3 years</option>
                                    <option value="4">4 years</option>
                                    <option value="5">5 years</option>
                                    <option value="6">Above 5 years</option>                                                      
                                </select>
                                <input type="submit" value="Search" name="sr" style="width: 100px;height: 30px;color: #0a81f7; margin-top: 5px;" />
                            </div>
                        </form>
                    </div>
                    <div CLASS="work1_mid">
                        <h4>  Login</h4>
                        <div class="viec">
                            <form action="loginServlets" method="POST">
                                <div style="border: 1px solid #ccc;margin-top: 10px">
                                    
                                    <div style="margin-top: 10px;margin-left: 250px"> <label title="">User name:</label> <input type="text" name="user"/></div><br>
                                    <div style="margin-top: 0px;margin-left: 250px"> <label title="">Pass word :</label> <input type="password" name="pass"/></div><br/>
                                    <div style="margin-top: 0px;margin-left: 320px"> <a href="forgotPassServlet">Forgot password</a></div><br/>
                                    <div style="margin-top: 0px;margin-left: 320px;color: red;margin-bottom: 10px"><c:set value="${eror}" var="eror"></c:set> ${eror}</div>
                                    <div style="margin-bottom:10px;margin-left: 315px"><input type="submit" name="dn" value="Sign in"/><input type="reset" name="dn" value="Reset"/></div>
                                </div>
                            </form>
                        </div>
                    </div>
                    <div CLASS="work1_bot">   
                        <h5> Advertisement</h5>
                        <div class="quangcao">
                            <a href="#"><img src="resources/images/quangcao.gif" style="width: 200px" /></a>
                            <a href="#"><img src="resources/images/quangcao.png" style="width: 200px;height: 200px" /></a>
                        </div>
                    </div>
                </div>
            </div>

            <div id="footer">
                <h6>@copyright FPT Aptech</h6>
                <h6>Email: quangcao@c1104g.g1.vn</h6>
                <h6> Tel: 844 39748899 Ext:2222 </h6>
                <h6>Website: www.c1104g-g1.vn</h6>
            </div>

    </body>
</html>
